query error or cannot connect to database